package cn.edu.neusoft.wuguangsheng.market.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.market.bean.MarketBean;
import cn.edu.neusoft.wuguangsheng.market.iface.MarketIface;
import cn.edu.neusoft.wuguangsheng.market.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.market.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

/**
 * Created by little on 2018/4/8.
 */

public class MarketModel extends RegisterModel implements MarketIface<MarketBean> {
    AllService allService;
    Retrofit retrofit;
    public MarketModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }

    @Override
    public void getMarketMessage(ListListener<MarketBean> listListener) {
        Call<List<MarketBean>> call=allService.showMarketList();
        callenqueueList(call,listListener);
    }
}
